<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>

<!-- 数组解构方式 -->
<!-- <script>

   let arr=[12,2,12]
   console.info(arr.length)
   let [a,b,c]=arr;
   console.log(a , b ,c);

</script> -->

<!-- 对象解构方式 -->
<!-- <script>
// json 数据格式声明对象
 let person={
     name:"zhangsan",
     age:12,
     hobbits:['唱歌','跳舞']
 }
 let {name ,age ,hobbits}= person;
 console.log(name ,age,hobbits
 )
</script> -->

<script>
    let person={
        name :"chiry",
        age:15,
        habbites:["dd","sing"]
    }

    let name =person.name;
    let str="zhagnsan";
    
    let s=str.startsWith("zh");
    console.log(s);
</script>

</html>